package com.qidianit.mes.pro.mapper;

import com.qidianit.mes.pojo.pro.Process;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProcessMapper {
    /**
     *
     * @param workflowId
     * @return
     */
    List<Process> selectListByWorkflowId(Long workflowId);
    /**
     *
     * @param process
     * @return
     */
    List<Process> selectList(Process process);

    /**
     *
     * @param process
     * @return
     */
    int saveProcess(Process process);

    /**
     *
     * @param ProcessCode
     * @return
     */
    Process selectByCode(String ProcessCode);

    /**
     *
     * @param process
     * @return
     */
    int updateById(Process process);

    /**
     *
     * @param id
     * @return
     */
    int deleteById(Long id);

    /**
     *
     * @param ids
     * @return
     */
    int batchDelete(@Param("ids") Long[] ids);

    Process selectById(Long processId);

    List<Process> selectProcessByWorkflowId(Long id);
}
